package com.changshi.service.video.api.feign;

import com.changshi.common.pojo.Result;
import com.changshi.service.video.api.entity.Video;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @ClassName VideoFeign
 * @Date 2020/1/2 21:03
 * @Author LeeSwag
 * @Version 1.0
 **/
@FeignClient(name = "video")
public interface VideoFeign {

    /**
     * 根据id获取单个视频
     *
     * @param id
     * @return
     */
    @GetMapping("/video/{id}")
    public Result<List<Video>> findById(@PathVariable(value = "id") String id);

}
